<!--  -->
<template>
  <div>
    {{getMsg}}
    <button @click="btn">修改</button>
  </div>

  <!-- <div>xxx{{list}}</div> -->
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "",
  props: [""],
  data() {
    return {
      list: [
        {
          id: "",
          name: ""
        }
      ]
    };
  },
  components: {},
  computed: {
    ...mapGetters(["getMsg"])
  },
  beforeMount() {},
  mounted() {},
  methods: {
    btn() {
      this.$store.dispatch("upMsg");
    }
  },
  watch: {}
};
</script>

<style lang='' scoped>
</style>